package com.lyf.design.practice.theory.structure.proxy.staticproxy.v0;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class Student extends AbstractPerson implements Extendable{
    private Integer grade;
    public Student(String name, Integer age, String job,Integer grade) {
        super(name, age, job);
        this.grade = grade;
    }

    @Override
    void work() {
        System.out.println("student: working..");
    }




    @Override
    public void extendOpt() {
        System.out.println("extend ... student function");
    }
}
